package com.mysql.mapper;

import com.mysql.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    //注解方式通过id查询
    @Select("select * from teacher where id=#{id}")
    Teacher getTeacher(@Param("id") int id);

    //查询所有用户
    Teacher getTeacherAll();

    //增加一个老师
    void getAddTeacher(Map<String,Object> map);

    //分页RowBounds
    List<Teacher> getTeacherByRowBounds();


}
